package toubiao.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import toubiao.domain.vo.assist.Json;
import toubiao.service.impl.SelectServiceImpl;

@Controller
@RequestMapping("/select")
public class SelectController {
	private Logger logger=LoggerFactory.getLogger(SelectController.class);
	
	@Autowired
	private SelectServiceImpl selectService;
	
	@RequestMapping("/class/{className}.json")
	@ResponseBody
	public Json getSelectByClassName(@PathVariable("className") String className){
		return selectService.getEzSelectOptionOfProjectDetail();
	}
	
	
	
}
